<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<?php
require './../class/MonthlyReport.inc';
require_once './../class/Employee.inc';
?>
<?php
$type = $_POST ['type'];
$search_dt = $_POST ['search_dt'];
$mem_id = $_POST ['mem_id'];

if($type=="1"){
	$empl = new Employee ();
	$spDate = $empl->getSplyDate ( $mem_id, $search_dt );

	echo "<div>";
	echo $spDate;
	echo "</div>";

}else if($type=="0"){
	$monthlyReport = new MonthlyReport ();
	$monthlyReport->createMonthlyReport ( $type,$mem_id, $search_dt);
}
?>

<body>


</body>
</html>